import request from '@/router/axios';
import qs from 'qs';

// 查 报废申请列表
export const findScrapPageQuery = (data) => request({
    url: `/scrapApplication/v1/pageQuery?page=${data.page}&size=${data.size}`,
    method: 'post',
    data: data.scrapApplication,
})

// 查 报废申请详情
export const findById = (data) => request({
    url: '/scrapApplication/v1/findById',
    method: 'post',
    data: qs.stringify(data),
})

// 审批流程
export const approvalProcess = (data) => request({
    url: '/scrapApplication/v1/processList',
    method: 'post',
    data: qs.stringify(data),
})

// 审核 通过/不通过
export const approvalNumberVerify = (data) => request({
    url: '/scrapApplication/v1/toExamine',
    method: 'post',
    data: qs.stringify(data),
})

// 修改
export const updateReservation = (data) => request({
    url: '/scrapApplication/v1/update',
    method: 'post',
    data: qs.stringify(data),
})

// 删除
export const delReservation = (data) => request({
    url: '/scrapApplication/v1/getById',
    method: 'post',
    data: qs.stringify(data),
})

// 查询设备类型 tree
export const getDevTypeList = (data) => request({
    url: '/equipmentType/v1/findAllType',
    method: 'post',
    data: qs.stringify(data),
})